projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
604b669
)
regmap: Add documentation
author
Mario Six
<
[email protected]
>
Thu, 4 Oct 2018 07:00:42 +0000
(09:00 +0200)
committer
Simon Glass
<
[email protected]
>
Wed, 14 Nov 2018 17:16:27 +0000
(09:16 -0800)
Document the regmap_alloc() function.
Reviewed-by: Anatolij Gustschin <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Signed-off-by: Mario Six <
[email protected]
>
drivers/core/regmap.c
patch
|
blob
|
history
diff --git
a/drivers/core/regmap.c
b/drivers/core/regmap.c
index 8e5c3bcf61bbc4927b2ccf577df927bafba1efb6..77f6f520a0657fd50787ab2f5e22d32bba772c68 100644
(file)
--- a/
drivers/core/regmap.c
+++ b/
drivers/core/regmap.c
@@
-17,6
+17,12
@@
DECLARE_GLOBAL_DATA_PTR;
+/**
+ * regmap_alloc() - Allocate a regmap with a given number of ranges.
+ *
+ * @count: Number of ranges to be allocated for the regmap.
+ * Return: A pointer to the newly allocated regmap, or NULL on error.
+ */
static struct regmap *regmap_alloc(int count)
{
struct regmap *map;